<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		
	</head>
	<body>
		<script type="text/javascript">
			var co=0;
			var fir= new Array("nihao","wohao","dajiahao");
			for(var i=0;i<fir.length;i++){
				var a=fir[i].indexOf("a");
				var b=fir[i].indexOf("A");
				if(a>=0||b>=0){
				co++;
				}
				
			}
			document.write("里面是否含有a或者A---"+co);
				
		</script>
	</body>
</html>
